package net.thxjj.mobileServer.entity;

import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.annotation.JSONType;

import java.io.Serializable;

@JSONType(orders={"msgId","action","code","desc","params"})
public class AppRespBean implements Serializable {
    private long msgId;
    private String action;
    private long code;
    private String desc;
    private AppSendRespParams params;

    public AppRespBean(long msgId, String action, long code, String desc) {
        this.msgId = msgId;
        this.action = action;
        this.code = code;
        this.desc = desc;
    }

    public AppRespBean(long msgId, String action, long code, String desc, AppSendRespParams params) {
        this.msgId = msgId;
        this.action = action;
        this.code = code;
        this.desc = desc;
        this.params = params;
    }

    public long getMsgId() {
        return msgId;
    }

    public void setMsgId(long msgId) {
        this.msgId = msgId;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public long getCode() {
        return code;
    }

    public void setCode(long code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public AppSendRespParams getParams() {
        return params;
    }

    public void setDevRespParams(AppSendRespParams params) {
        this.params = params;
    }

    @Override
    public String toString() {
        return JSONObject.toJSONString(this);
    }
}
